function players:reset

# 触发型计分板
scoreboard objectives add join trigger [{"text":"玩家计分板","color":"yellow"}]
scoreboard objectives setdisplay sidebar join
# 计分板初始化
scoreboard players set 已加入 join 0
scoreboard players set @a join 0

# 初始化计时器

#==============================================#
# 设置标准秒数
scoreboard objectives add _sec_ dummy
scoreboard players set 已加入 _sec_ 10
# 设置标准分数
scoreboard objectives add _min_ dummy
scoreboard players set 已加入 _min_ 0
# 设置标准时数
scoreboard objectives add _hour_ dummy
scoreboard players set 已加入 _hour_ 0
#==============================================#

# 显示秒数
scoreboard objectives add sec dummy
scoreboard players operation 已加入 sec = 已加入 _sec_
# 游戏刻转换进制
scoreboard objectives add con dummy
scoreboard players set 已加入 con 20
# 显示分钟
scoreboard objectives add min dummy
scoreboard players operation 已加入 min = 已加入 _min_
# 显示小时
scoreboard objectives add hour dummy
scoreboard players operation 已加入 hour = 已加入 _hour_
# 常数0
scoreboard objectives add 0 dummy
scoreboard players set 已加入 0 0

# 设置最少加入人数
scoreboard objectives add count dummy
scoreboard players set 已加入 count 2

tellraw @a [{"text":"\n数据包 ","color":"green","bold": true},{"text":"PlayersCount","color":"yellow","bold": false},{"text":" 初始化完成！\n","color":"green","bold": true}]

function players:main